<?php
	include_once('auth.php');
	include_once('config.php');

	if (!empty($_POST))
	{
		$params = array(
			'ru_name' => $_POST['tName'],
			'en_name' => $_POST['tTranslate'],
			'main' => $_POST['tMain']
		);
		
		insertNewTag($params);
	}
	else
	{
		header('Location: /admin');
		exit();
	}
?>